<?php
$GLOBALS['ajax'] = true;
define( '_JEXEC', 1 );
define('JPATH_BASE', '/var/www/html/jloja' );
define( 'DS', DIRECTORY_SEPARATOR );
define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_jloja' );


require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();

set_include_path( get_include_path() . PATH_SEPARATOR . JPATH_COMPONENT_ADMINISTRATOR . DS . '_lib' . DS . 'jloja' );
require JPATH_COMPONENT_ADMINISTRATOR . DS . 'router.php';
//initialize the JLoja Router
$router = new JLoja_Router();
$router->dispatch( false );